package com.wondertek.poms.core.filter.impl;

import com.wondertek.poms.core.filter.BaseRuleFilter;
import com.wondertek.poms.core.filter.RuleFilterChain;
import com.wondertek.poms.dao.po.Content;
import com.wondertek.poms.dao.po.IRulePo;
import com.wondertek.poms.dao.po.PcProductRule;

@Deprecated
public class ScopeAuthorFilter extends BaseRuleFilter {
    @Override
    public void doFilter(IRulePo rule, Content vo, RuleFilterChain chain) {
        if(rule instanceof PcProductRule){
            PcProductRule r= (PcProductRule) rule;
            this.baseFilter(r.getId(),
                    r.getCopyrightScope()!=null?r.getCopyrightScope():"",
                    vo.getScope(),
                    chain,
                    "版权授权范围-ScopeAuthor");
        }
        chain.doFilter(rule, vo, chain);
    }
}
